Skip to content

Conversation

@hsablonniere
Copy link
Contributor

This rule verifies that all properties of a single rule are in alphabetical order.

I know order is a serious debate. I don't want to impose it. I just think people who want to enforce order should be able to do so using awesome csslint ;-)

@clakech
Copy link

clakech commented Nov 24, 2013

👍

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so -webkit-box-shadow orders before -moz-transition because its box-shadow?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. The order doesn't care about prefixes, so even if w is after m, the order is using b and t.

I didn't want to enforce order between prefixes of the same property.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@hsablonniere
Copy link
Contributor Author

I could add a second "no warning" test without prefixed properties maybe...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor thing, but it's probably best to keep the quoting consistent (even though it isn't throughout the repo right now)

@hsablonniere
Copy link
Contributor Author

I added a "no warning" test with unprefixed properties and changed the single quotes to double ones...

@hsablonniere
Copy link
Contributor Author

Any news on this feature ?

nschonni added a commit that referenced this pull request Apr 8, 2014
@nschonni nschonni merged commit b92b866 into CSSLint:master Apr 8, 2014
@nschonni nschonni added this to the 0.11.0 milestone Apr 8, 2014
@XhmikosR XhmikosR modified the milestones: 0.11.0, 1.0.0 Jan 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants